package cos470_assignment1

class BooksController {
	
	def scaffold = true
	
	def booksService
	
	def ajaxRandom = {
		def randomBook = booksService.getRandomBook()
		render (view:"bookBody", model: [aBook:randomBook])
	}
		
	def random = {
			def randomBook = booksService.getRandomBook()
			[aBook : randomBook]
		}
}
